﻿
@model Cnm.Models.ViewModels.PostBreadcrumbModel
    

@if (Model.Enabled)
{
    var breadcrumbDelimiter = ">";
    
    <div class="">
        <ol class="breadcrumb">
            <li>
                <span itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
                    <a href="@Url.RouteUrl("HomePage")" itemprop="url">
                        <span itemprop="title">tayninhinfo.net</span>
                    </a>
                </span>
                @*<span class="delimiter">@breadcrumbDelimiter</span>*@
            </li>
            @foreach (var category in Model.CategoryBreadcrumb)
            {
                <li>
                    <span itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
                        <a href="@Url.RouteUrl("Category", new { SeName = category.SeName })" itemprop="url">
                            <span itemprop="title">@category.Name</span>
                        </a>
                    </span>
                    @*<span class="delimiter">@breadcrumbDelimiter</span>*@
                </li>
            }
            <li class="active">
                @Model.PostName
                @*<strong class="current-item"><a href="@Url.RouteUrl("Product", new { SeName = Model.ProductSeName })" itemprop="url">@Model.ProductName</a></strong>*@
            </li>
        </ol>
    </div>

}